<html xmlns="http://www.w3.org/1999/xhtml">
  <head>

    <style type="text/css">
        body {
            width:100%;
            height:100%;
    border: 0px;
    margin: 0px;
    padding: 0px;
    font:sans-serif;
    font-size:small;
    }
    #map {
    width: 800px;
    height: 600px;
    border: 1px solid black;
    padding: 0px;
    margin:0px auto;
    margin-top:30px;
    position:relative;
    }
    </style>

    <!--script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script-->
    <script type="text/javascript" src="/openl/openlayers/lib/OpenLayers.js"></script>
    
    <script type="text/javascript">
      var lon = 4187888;
      var lat= 7509599;
    var zoom = 7;
    var map, layer;

        function init(){
              map = new OpenLayers.Map('map',
	      {'maxResolution': 360/512/16,
	       'numZoomLevels':15,
	        controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.ScaleLine() ]});	
//            map = new OpenLayers.Map( 'map' );
        map.addControl(new OpenLayers.Control.Permalink());        

        var wms = new OpenLayers.Layer.WMS( "WMS",

/*
change here to suite your setup
*/
                "http://95.31.7.69/mapserver?",
                {map: 'osm/11.map', 


        layers: 'default', 
        format: 'aggpng24',
//	format: 'svg',
        transparent: 'off'},
                {maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
                scales: [5000,10000,25000,50000,100000,250000,500000,
                         1000000,2500000,5000000,10000000,25000000,50000000,100000000],
                units: 'm',
                projection:new OpenLayers.Projection("EPSG:900913"),
                gutter:0,
                ratio:1,
                wrapDateLine: true,
                isBaselayer:true,
                singleTile:true,//одноэлементная загрузка
                transitionEffect:'resize'} );
//var vector = new OpenLayers.Layer.Vector("Editable Vectors");

            map.addLayers([wms]);
            if(!map.getCenter())
                map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
//            map.addControl(new OpenLayers.Control.Scale('scale'));
            map.addControl(new OpenLayers.Control.Permalink('permalink'));
            map.addControl(new OpenLayers.Control.MousePosition());
        }
    </script>
  </head>

<body onload="init()">
    <div id="map">
    </div>
</body>
</html>
